﻿const api='/api'
const newApi='/newApi'

/*后台*/
const apiConfig={
    //陈斌首页
    cb_login:api+'/login',

    //首页权限测试
    cb_login_test:api+'/menu/test',
    //陈斌 首页渲染
    cb_homepageData:api+'/homePageOrder',

     //景兵的后端api接口
    //测试
    test:api+'/homePageOrder',//没问题
    goods_list:api+'/goodsManage/showGoodsList',

    //明小龙 订单管理
    CJKDBD:api+'/OrderController/creatDelivery',//创建快递表单
    DDLTJL:api+'/OrderController/orderChatRecord',//订单聊天记录
    CXXQ:api+'/OrderController/orderDetails',//查询详情
    DDHF:api+'/OrderController/orderReply',//订单回复
    TK:api+'/OrderController/refund',//退款
    TKLS:api+'/OrderController/refundHistory',//退款历史
    CXLB:api+'/OrderController/selectByCondtion',//获取订单列表
    XGKDXX:api+'/OrderController/updateOrderDelivery',//修改订单快递信息
    DDSJ:api+'/homePageOrder',


    // //测试后端商品数据
    // deleteyh:api+"/goodsManage/addGoods",
    fenye:api+"/goodsManage/showGoodsList",//分页
    deleteyh:api+"/goodsManage/addGoods",//添加
    shanchu:api+"/goodsManage/deleteGoods",//删除
    updategoods:api+"/goodsManage/updateGoods",//修改


    //唐滔   优惠券


    tt_selectAllActive:api+'/activityController/selectAllActivity',//查询所有活动
    tt_selectActive:api+'/activityController/selectActivityByIf',//多条件查询活动
    tt_selectCoupon:api+'/activityController/selectCouponInfoFromActive',//查询活动的优惠券
    tt_selectCouponById:api+'/couponController/selectCouponById',//id查询优惠券
    tt_selectAllCoupon:api+'/couponController/selectAllCoupon',//查询所有优惠券
    tt_createCoupon:api+'/couponController/createCoupon',//常见优惠券
    tt_deleteActive:api+'/activityController/delActivityById',//id删除活动
    tt_setActive:api+'/activityController/setActivityById',//id修改活动
    tt_addCoupon:api+'/activityController/addCouponToActivity',//活动中添加优惠券
    tt_deleteCoupon:api+'/activityController/delCouponFromActiveById',//id删除活动中的优惠券
    tt_createActive:api+'/activityController/createActivity',//创建活动




    //pmw
    /*权限管理api*/
    getPermissions: api+'/auth/list/page',//获取权限列表
    /*角色管理api*/
    getRoleData: api+'/role/list/page', //获取角色列表
    updateRoleData: api+'/role/update', //修改角色信息
    addRoleData: api+'/role/add', //新增角色信息
    /*用户管理api*/
    getBackUserMsg:api+'/backUser/list/page',//用户个人接口
    getManagerMsg:api+'/backUser/superList/page',//管理员能看到的用户个人接口
    backUserMsgUpdate:api+'/backUser/update',//用户个人修改信息接口
    managerMsgUpdate:api+'/backUser/superUpdate',//管理员修改信息接口

}

/*yapi*/
const newApiConfig={
    //陈斌图标y轴数据
    cb_echarts_number:newApi+"/mock/321/getordernumber",
    cb_echarts_amount:newApi+"/mock/321/getorderamount",
    //陈斌首页数据yapi
    cb_ordermoney:newApi+"/mock/321/getbignumber",
    cb_ordernumber:newApi+"/mock/321/getsmallnumber",
    cb_homeNews:newApi+"/mock/321/getnews",
    cb_homepercent:newApi+"/mock/321/getpercent",
    //商品相关接口
    //列表页
    goodList:newApi+"/mock/321/getallProduct",//所有商品的数据
    searchData:newApi+"/mock/321/searchGoods",          //搜索商品的请求数据
    delete_goods:newApi+'/mock/321/deleteProduct',//根据商品ID删除商品
    supply_list:newApi+'/mock/321/getSuplly',//拿供应商数据
    // 详情页
    getDetails:newApi+'/mock/321/getProductDetails',//拿详情页数据
    updateData:newApi+'/mock/321/updateProduct',//提交修改的数据
    // delete_goods:newApi+'/mock/321/deleteProduct',//根据商品ID删除商品
    // 添加页面
    addGoods:newApi+'/mock/321/addGoods',//添加商品的
    //进出货页面
    OutData:newApi+'/mock/321/saleproduct', //获取出货数据
    searchOut:newApi+'/mock/321/searchOut', //搜索出货数据
    updateOut:newApi+'/mock/321/updateOut',//修改出货数据
    deleteOut:newApi+'/mock/321/deleteOut',//删除出货数据

    //进货的api
    getIntoRecord:newApi+'/mock/321/intorecord',//获取进货数据
    searchInto:newApi+'/mock/321/searchInto',//搜索进货数据
    updateIntoRecord:newApi+"/mock/321/updateInto",//修改进货数据
    deleteIntoRecord:newApi+"/mock/321/deleteInto",//删除进货数据
    addIntoRecord:newApi+'/mock/321/addInToRecord'//添加进货数据

}

module.exports={

    ...apiConfig,
    ...newApiConfig,


}
